//app.js
var API_URL = "https://cswlyx.com/xcxapi/public/index.php/xcx/adduser";
App({
 
 onLaunch: function () {
    // 展示本地存储能力
    var logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)
    wx.getStorageInfo({
      success: function (res) {
        // console.log(res.keys)
      
      }
    })
   var uid= wx.getStorageSync('uid')
  //  console.log(uid)
   var that=this
  //  if(uid){
  //    wx.request({
  //      url: that.globalData.url + 'xcx/messageNum/' + uid,
  //      method: 'get',
  //      success: function (res) {
         
  //        that.globalData.tip  =res.data.msg
       
  //        console.log(that.globalData.tip);
  //      }
  //    })
  //  }
   




    
  },
  globalData: {
    userInfo: null,
    // tip:20,
    url: 'https://cswlyx.com/xcxapi/public/index.php/'
  }
})